// 创建上门服务工单
export const createServiceApi = async (data) => {
	const {
		data: res
	} = await uni.$http.post(`/api/community/miniapp/communityOnsite/createCommunityOnsiteService`, data)
	return res
}

// 开始服务
export const startServiceApi = async (data) => {
	const {
		data: res
	} = await uni.$http.post(`/api/community/miniapp/communityOnsite/startCommunityOnsiteService`, data)
	return res
}

// 结束服务
export const endServiceApi = async (data) => {
	const {
		data: res
	} = await uni.$http.post(`/api/community/miniapp/communityOnsite/endCommunityOnsiteService`, data)
	return res
}

// 查看单个上门服务请求
export const getServiceDetailApi = async (serviceCode) => {
	const {
		data: res
	} = await uni.$http.get(`/api/community/miniapp/communityOnsite/queryCommunityOnsiteServiceDetail/${serviceCode}`)
	return res
}

// 分页查询当前员工上门服务列表
export const serviceListApi = async (data) => {
	const {
		data: res
	} = await uni.$http.post(`/api/community/miniapp/communityOnsite/queryCommunityOnsiteServiceList`, data)
	return res
}



